﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Nhom14_HTTTHD_BuyMe
{
    public partial class infotransaction : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        
        // cap nhat thong tin quan ly cho w/d
        protected void Button1_Click(object sender, EventArgs e)
        {
            int idtran = Convert.ToInt32(Request.QueryString["id"]);

            string par1 = "VU";
            // bid website hay domain
            int par2 = idtran;
            string par3 = TextBox1.Text;

            string address = "http://localhost:49744/WebService1.asmx";
            string function = "TransactionInformation";

            int res = (int)WebserviceInvoker.WSInvoker.CallWebService(address, "WebService1", function, new object[] { par1, par2, par3 });

            Response.Redirect("~/mytransaction.aspx");
        }
    }
}